#ifndef __SHM_HPP__
#define __SHM_HPP__

#include <iostream>
#include <string.h>
#include <cerrno>
#include <cstdio>
#include <sys/ipc.h>
#include <sys/shm.h>

const std::string gpathname = "/home/bbl/linux/code/Pipe/4.shm";
const int gproj_id = 0x66;

key_t GetCommKey(const std::string &pathname, int proj_id)
{
    key_t k = ftok(pathname.c_str(), proj_id);
    if (k < 0)
    {
        perror("Create error");
    }
}

#endif